//
//  SelectedMoreComment.m
//  ZCooking
//
//  Created by LL.F on 16/09/12
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "SelectedMoreComment.h"
#import "SelectedMoreParents.h"

@implementation SelectedMoreComment

+ (NSDictionary *)objectClassInArray{
    return @{@"parents" : [SelectedMoreParents class]};
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
    if ([key isEqualToString:@"id"]) {
        _id_Data = value;
    } 
}
- (void)setValue:(id)value forKey:(NSString *)key
{
    
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"parents"]) {
        NSMutableArray<SelectedMoreParents *>  *parentsArray = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            SelectedMoreParents *data = [SelectedMoreParents modelWithDic:dic];
            [parentsArray addObject:data];
        }
        _parents = parentsArray;
    }
}

@end
